Ext.ns('ru.proburo.oms.order.entities');

/**
 * ru.proburo.oms.order.entities.OrderLine
 * @extends Ext.data.Record
 */
ru.proburo.oms.order.entities.OrderLine = Ext.data.Record.create([
	//{name: 'rowid',         type: 'int'},//заменить на KEY(order_id + item_id)
	{name: 'id',         type: 'int'},//заменить на KEY(order_id + item_id)
	{name: 'order_id',      type: 'int'},
	{name: 'item_id',       type: 'int'},
	{name: 'amount',        type: 'float'},
	{name: 'price',         type: 'float'},
	
	//LEFT JOIN-ed fields
	{name:'name',           type: 'string'},
    {name:'vendor',         type: 'string'},
    {name:'article',        type: 'string'},
    {name:'sku',            type: 'string'}
]);